package pe.com.manpower.sisplan.view.backing;

public class MTrabBean {
    public String nocia;
    public String codtrab;
    private String flow_name;
    private boolean isReadOnly;
    private boolean isDisabled;
    
    public MTrabBean() {
        super();
    }


    public void setNocia(String nocia) {
        this.nocia = nocia;
    }

    public String getNocia() {
        return nocia;
    }

    public void setCodtrab(String codtrab) {
        this.codtrab = codtrab;
    }

    public String getCodtrab() {
        return codtrab;
    }

    public void setFlow_name(String flow_name) {
        this.flow_name = flow_name;
      //  System.out.println("Entro al set flow..."+flow_name);
        if("DETAIL_FLOW".equalsIgnoreCase(flow_name)){
          isReadOnly=true;
          isDisabled=true;
        }else{
          isReadOnly=false;
          isDisabled=false;
        }
    }

    public String getFlow_name() {
        return flow_name;
    }

    public void setIsReadOnly(boolean isReadOnly) {
        this.isReadOnly = isReadOnly;
    }

    public boolean isIsReadOnly() {
        //System.out.println("Entro al isReadOnly..."+isReadOnly);
        return isReadOnly;
    }

    public void setIsDisabled(boolean isDisabled) {
        this.isDisabled = isDisabled;
    }

    public boolean isIsDisabled() {
        //System.out.println("Entro al isDisabled..."+isDisabled);
        return isDisabled;
    }
    
    
    
}
